package com.cqq.auth.dao.impl;

import java.io.Serializable;
import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;

import com.cqq.auth.dao.UserDataDao;
import com.cqq.auth.dao.domain.UserData;
import com.cqq.auth.dao.mapper.UserDataMapper;
import com.cqq.common.core.base.BaseDao;
import com.cqq.common.core.base.BaseQuery;

/**
 * <h3>用户数据权限配置Dao接口实现类</h3>
 * 
 * @author xijq
 * @version 1.0.0
 * 
 */
@Repository("userDataDao")
public class UserDataDaoImpl extends BaseDao implements UserDataDao {
	
	@Autowired
	private UserDataMapper userDataMapper;

	
	public void add(UserData obj) {
		userDataMapper.add(obj);
	}

	
	public Integer delete(Serializable id) {
		return userDataMapper.delete(id);
	}

	
	public Integer update(UserData obj) {
		return userDataMapper.update(obj);
	}

	
	public UserData queryById(Serializable id) {
		return userDataMapper.queryById(id);
	}

	
	public List<UserData> queryAll() {
		return null;
	}

	
	public List<UserData> queryPage(BaseQuery query) {
		return null;
	}

	
	public Integer queryCount(BaseQuery query) {
		return null;
	}

	
	public UserData queryByUserIdAndDataCode(Integer userId,
			String dataCode) {
		return userDataMapper.queryByUserIdAndDataCode(userId, dataCode);
	}

	
	public void deleteUserDataByUserId(Integer userId) {
		// TODO Auto-generated method stub
		userDataMapper.deleteUserDataByUserId(userId);
	}

}
